﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Model;
using System.Data.SqlClient;

namespace BLL
{
    public  class AuthorityAndRolesBLL
    {
        AuthorityAndRoles au = new AuthorityAndRoles();
        public List<AuthorityAndRoles> GetList(params SqlParameter[] param)
        {
            return new AuthorityAndRolesDAL().GetList<AuthorityAndRoles>(param);
        }
        public bool AddAuthorityAndRoles(params SqlParameter[] param)
        {
            return new AuthorityAndRolesDAL().Add(au, param);
        }
        public bool DeleteAuthorityAndRoles(int id)
        {
            return new AuthorityAndRolesDAL().Delete(id);
        }

    }
}
